package model

import "time"

type Pledge struct {
	Account     string
	Amount      string
	LedgerTime  time.Time
	LedgerIndex int
	TxState     int
	Pid         int
}

func (Pledge) TableName() string {
	return "pledge_record"
}

type StoTx struct {
	TAccount string
	Hash     string
	Nonce    int
	TxState  int
	Amount   float64
}

func (StoTx) TableName() string {
	return "air_drop"
}

type SysPool struct {
	Pid  int
	Life int
	Rate float64
}

func (SysPool) TableName() string {
	return "sys_pool"
}

type StoSreward struct {
	Ctime   time.Time
	Sreward float64
}

func (StoSreward) TableName() string {
	return "sto_sreward"
}

type SysRelease struct {
	ReleasePd float64
}

func (SysRelease) TableName() string {
	return "sys_release"
}
